package com.hema.auction.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.Gson;
import com.google.gson.annotations.SerializedName;

/**
 * 描述:
 * 作者:john
 */
public class AddressInfo implements Parcelable {

    /**
     * id : 5
     * name :
     * phone :
     * area :
     * address :
     * remark :
     * user_id : 15
     * create_at : 1500952994
     */

    @SerializedName("id")
    private String id;
    @SerializedName("name")
    private String name;
    @SerializedName("phone")
    private String phone;
    @SerializedName("area")
    private String area;
    @SerializedName("address")
    private String address;
    @SerializedName("remark")
    private String remark;
    @SerializedName("user_id")
    private String userId;
    @SerializedName("create_at")
    private String createAt;
    @SerializedName("qq_number")
    private String qqNumber;
    @SerializedName("zfb_number")

    private String zfbNumber;
    @SerializedName("zfb_name")
    private String zfbName;

    public String getQqNumber() {
        return qqNumber;
    }

    public void setQqNumber(String qqNumber) {
        this.qqNumber = qqNumber;
    }

    public String getZfbNumber() {
        return zfbNumber;
    }

    public void setZfbNumber(String zfbNumber) {
        this.zfbNumber = zfbNumber;
    }

    public String getZfbName() {
        return zfbName;
    }

    public void setZfbName(String zfbName) {
        this.zfbName = zfbName;
    }

    public static AddressInfo objectFromData(String str) {

        return new Gson().fromJson(str, AddressInfo.class);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCreateAt() {
        return createAt;
    }

    public void setCreateAt(String createAt) {
        this.createAt = createAt;
    }

    public AddressInfo() {
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.phone);
        dest.writeString(this.area);
        dest.writeString(this.address);
        dest.writeString(this.remark);
        dest.writeString(this.userId);
        dest.writeString(this.createAt);
        dest.writeString(this.qqNumber);
        dest.writeString(this.zfbNumber);
        dest.writeString(this.zfbName);
    }

    protected AddressInfo(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.phone = in.readString();
        this.area = in.readString();
        this.address = in.readString();
        this.remark = in.readString();
        this.userId = in.readString();
        this.createAt = in.readString();
        this.qqNumber = in.readString();
        this.zfbNumber = in.readString();
        this.zfbName = in.readString();
    }

    public static final Creator<AddressInfo> CREATOR = new Creator<AddressInfo>() {
        @Override
        public AddressInfo createFromParcel(Parcel source) {
            return new AddressInfo(source);
        }

        @Override
        public AddressInfo[] newArray(int size) {
            return new AddressInfo[size];
        }
    };
}
